<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>添加科室</title>
</head>
<body>
<div class="pd-20">
    <form action="{:U('add')}" method="post" class="form form-horizontal" id="form">
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>父级科室：</label>
            <div class="formControls col-8">
                <span class="select-box">
                <select class="select Validform_error" size="1" name="pid" datatype="*" nullmsg="请选择" onchange="selectTopMenu()">
                    <option value="" selected="" disabled="disabled">请选择</option>
                    <option value="0">顶级科室</option>
                    <volist name=":getDepartmentinfoTree()" id="v">
                        <option value="{$v['id']}" <if condition="$v['pid'] neq 0">disabled</if>>{$v['name']}</option>
                    </volist>
                </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>科室名：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入" name="name" datatype="*" nullmsg="不能为空">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>描述：</label>
            <div class="formControls col-8">
                <textarea rows="5" cols="34" style="resize:none"  class="textarea" name="description" placeholder="请输入"></textarea>
            </div>
        </div>
        <div class="row cl">
            <div class="col-9 col-offset-3">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
<include file="Common:footer_include"/>

</body>
</html>